package com.deer.wms.base.system.service.bill.impl;

import com.deer.wms.base.system.dao.bill.BillOutWorkMapper;
import com.deer.wms.base.system.model.bill.BillOutDetailDto;
import com.deer.wms.base.system.model.bill.BillOutMaster;
import com.deer.wms.base.system.model.bill.BillOutMasterCriteria;
import com.deer.wms.base.system.model.bill.BillOutMasterDto;
import com.deer.wms.base.system.model.task.TaskInfo;
import com.deer.wms.base.system.service.bill.BillOutWorkService;
import com.deer.wms.common.core.service.AbstractService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BillOutWorkServiceImpl extends AbstractService<BillOutMaster, Integer> implements BillOutWorkService {
    @Autowired
    private BillOutWorkMapper billOutWorkMapper;
    @Override
    public BillOutMasterDto findBillOutMasterDtoByBillId(Integer billId) {
        return billOutWorkMapper.findBillOutMasterDtoByBillId(billId);
    }

    @Override
    public List<BillOutDetailDto> selectListByBillId(BillOutDetailDto billOutDetailDto) {
        return billOutWorkMapper.selectListByBillId(billOutDetailDto);
    }

    @Override
    public BillOutDetailDto selectEditQuantity(BillOutDetailDto billOutDetailDto) {
        return billOutWorkMapper.selectEditQuantity(billOutDetailDto);
    }

    @Override
    public List<BillOutMasterDto> findList(BillOutMasterCriteria criteria) {
        return billOutWorkMapper.findList(criteria);
    }

    @Override
    public List<TaskInfo> selectTaskInfoBybillId(Integer billId) {
        return billOutWorkMapper.selectTaskInfoBybillId(billId);
    }

    @Override
    public int startAssignment(Integer billId) {
        return billOutWorkMapper.startAssignment(billId);
    }

    @Override
    public int endAssignment(Integer billId) {
        return billOutWorkMapper.endAssignment(billId);
    }

    @Override
    public int editBillOut(Integer billId) {
        return billOutWorkMapper.editBillOut(billId);
    }
}
